<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<Pulog.Models.Comment>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditCommentList</h2>
    <table>
        <tr>
            <th></th>
            <th>
                Comment ID
            </th>
            <th>
                Post ID
            </th>
            <th>
                Comment
            </th>
            <th>
                CommentTime
            </th>
            <th>
                Posted By
            </th>
        </tr>
        <% foreach (var item in Model) { %>
            <tr>
                <td>
                    <%= Html.ActionLink("Edit", "EditComment", new { id=item.postID }) %> |
                    <a id="DeleteComment" href="javascript:DeleteComment(<%=item.postID %>)">Delete</a>
                </td>
                <td>
                    <%= Html.Encode(item.postID) %>
                </td>
                <td>
                    <%= Html.Encode(item.title) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.pubTime)) %>
                </td>
                <td>
                    <%= Html.Encode(item.authorID) %>
                </td>
                <td>
                    <%= Html.Encode(item.views) %>
                </td>
                <td>
                    <%= Html.Encode(item.property) %>
                </td>
                <td>
                    <%= Html.Encode(item.categoryID) %>
                </td>
                <td>
                    <%= Html.Encode(item.sticky) %>
                </td> 
                <td>
                    <%= Html.Encode(item.slug) %>
                </td>
            </tr>
        <% } %>
        
    </table>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
